<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.qm.hibernate.Tpost,com.qm.hibernate.Tblog,java.text.SimpleDateFormat"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>好友空间-个人资料</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="../Css/styles.css">
	<%
		List<Tblog> b = (List<Tblog>) session.getAttribute("hisBlogs");	
			Tuser friend3 = (Tuser)session.getAttribute("friend");
			String str = null;
			if (friend3.getBirthday()!=null)
			{
			SimpleDateFormat   formatter   =   new   SimpleDateFormat   ("yyyy-MM-dd");     
		 Date   curDate   = friend3.getBirthday();//获取当前时间     
		str   =   formatter.format(curDate);	
		}
	%>
  </head>
  
  <body>
    	<%@ include file = "../Public/hishomeHeader.jsp" %>
   <div id = "container">
 	 <%@ include file="../Public/hisLeft.jsp" %>
 	  <div id = "middle">
 	 <h3>他的资料</h3>
	 	名字：<%=friend.getName()%><br/><br/>
	 	性别：<%=friend.getGender()%><br/><br/>
	 	生日：<%=str%><br/><br/>
	 	签名：<%=friend.getSignature()%><br/><br/>
	 	地址：<%=friend.getAddress()%><br/><br/>
	 	电话：<%=friend.getPhoneNumber()%><br/><br/>
	 	邮箱：<%=friend.getEmail()%><br/><br/>
 	 </div>
 	 <div id = "right" style = "float:right">
 	  <h3>他的日志</h3>
 	 <ul>
 	<%for(int i = 0;i < b.size();i++){ %>
 	 <li>
 	 <a href = "hisJournal?id=<%=b.get(i).getId() %>"> <%=b.get(i).getTitle()%></a>
 	 </li>
 	 <%}%>
 	</ul> 
 	 </div>
 	</div>
   <div id = "footer">
   </div>
  </body>
</html>
